import 'package:flutter/material.dart';
import 'package:gczn_hd/app/core/values/app_values.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import '/app/core/values/app_colors.dart';



var pageTitleStyle = TextStyle(
    fontSize: 18.sp,
    fontWeight: FontWeight.w600,
    height: 1.15,
    color: AppColors.appBarTextColor);


var textFieldHintStyle = TextStyle(
    fontWeight: FontWeight.w400,
    color: AppColors.textFieldHint,
    fontSize: AppValues.margin_30.sp
);

var whiteTextStyle = TextStyle(
    color: AppColors.colorWhite,
    fontSize: AppValues.margin_30.sp
);

var submitButtonText = TextStyle(
    color: AppColors.colorWhite,
    fontWeight: FontWeight.normal,
    fontSize: AppValues.margin_30.sp
);

var appTitleText = submitButtonText.copyWith(fontSize: ScreenUtil().setSp(AppValues.size36));

var submitButtonStyle = TextStyle(
    color: AppColors.gcznPrimaryColor,
    fontWeight: FontWeight.normal,
    fontSize: AppValues.margin_30.sp
);

final ButtonStyle btnStyle = ElevatedButton.styleFrom(
  foregroundColor: Colors.white, // 文本颜色
  backgroundColor: AppColors.gcznPrimaryBlueColorBtn, // 背景颜色
  shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(AppValues.margin_12.r), // 圆角
  ),
);
final ButtonStyle btnStyleCancle = ElevatedButton.styleFrom(
  foregroundColor: Colors.white, // 文本颜色
  backgroundColor: AppColors.gcznPrimaryColorCan, // 背景颜色
  shape: RoundedRectangleBorder(
    borderRadius: BorderRadius.circular(AppValues.margin_12.r), // 圆角
  ),
);

const BoxShadow pressShadow = BoxShadow(
  color: Color.fromRGBO(10, 38, 61, 0.6),
  offset: Offset(0, 2),
  blurRadius: 6,
  spreadRadius: 0,
);
var dangerText = TextStyle(
    color: AppColors.dangerTextColor,
    fontWeight: FontWeight.w700,
    fontSize: AppValues.size20.sp
);
var textStyle = TextStyle(
    color: AppColors.colorWhite,
    fontWeight: FontWeight.normal,
    fontSize:AppValues.size24.sp
);
var textStyle30 = TextStyle(
    color: AppColors.colorWhite,
    fontWeight: FontWeight.normal,
    fontSize: AppValues.size30.sp
);
var textStyle30Bold = TextStyle(
    color: AppColors.colorWhite,
    fontWeight: FontWeight.bold,
    fontSize: AppValues.size30.sp
);
var textStyle20 = TextStyle(
    color: AppColors.colorWhite,
    fontWeight: FontWeight.normal,
    fontSize: AppValues.size20.sp
);
var textStyle20Opa = TextStyle(
    color: AppColors.colorWhite.withOpacity(AppValues.decimals6),
    fontWeight: FontWeight.normal,
    fontSize: AppValues.size20.sp
);
var textStyle20Opa8 = TextStyle(
    color: AppColors.colorWhite.withOpacity(AppValues.decimals8),
    fontWeight: FontWeight.normal,
    fontSize: AppValues.size24.sp
);
var textStylebtn = TextStyle(
    color: AppColors.text333,
    fontWeight: FontWeight.w600,
    fontSize: AppValues.size20.sp
);

var waitTextStyle = TextStyle(
    color: AppColors.waitColor,
    fontWeight: FontWeight.w600,
    fontSize: AppValues.size30.sp
);

var successTextStyle = TextStyle(
    color: AppColors.successColor,
    fontWeight: FontWeight.w600,
    fontSize: AppValues.size30.sp
);

var fialTextStyle = TextStyle(
    color: AppColors.fialColor,
    fontWeight: FontWeight.w600,
    fontSize: AppValues.size30.sp
);